close all
load xinit;
load clown;
tensie = array2tensor(x);
texture = imread('clothTexture.jpg');
% h = surface(tensie(:,:,1), tensie(:,:,2), tensie(:,:,3),flipud(X),...
%    'FaceColor','texturemap',...
%    'EdgeColor','none',...
%    'CDataMapping','direct');
h = surface(tensie(:,:,1), tensie(:,:,2), tensie(:,:,3));
set(h,'CData',texture,'FaceColor','texturemap','EdgeColor', 'none');
colormap('default');